<?php

use App\Livewire\Action;
use App\Livewire\Archive;
use App\Livewire\Article;
use App\Livewire\Index;
use App\Livewire\About;
use App\Livewire\Message;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

// 首页
Route::get('/', Index::class);
// 留言
Route::get('/message', Message::class);
// 归档
Route::get('/archive/{year?}', Archive::class);
// 动态
Route::get('/action', Action::class);
// 关于
Route::get('/about', About::class);
// 文章详情
Route::get('/article/{id}', Article::class);
// 文章分类列表
Route::get('/category/{category_id}', Index::class);
// 搜素文章
Route::get('/search/{keyword}', Index::class);
